package com.edu.demo.mapper;

import com.edu.demo.entity.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jixuewei
 * @since 2023-01-12
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {

    @Select("select * from student where code = #{code}")
    Student selectByCode(String code);


    List<Student> findStudents(Student student);
}
